package com.eve;

import com.eve.app.AppConfig;
import com.eve.dao.EveDao;
import com.eve.dao.TestDao;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Component;

/**
 * 老大哥在看着你
 *
 * @author ANG.YU
 * @date 2019-11-16 10:50
 */
public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        /*EveDao eveDao = applicationContext.getBean(EveDao.class);
        System.out.println(eveDao.query());*/
        System.out.println(applicationContext.getBean(TestDao.class).getClass().getSimpleName());
    }
}
